package com.itheima.Test;

import java.util.Scanner;

public class Test4 {
    public static void main(String[] args) {
        System.out.println("请输入会员级别：");
        Scanner sc = new Scanner(System.in);
        int number = sc.nextInt();
        double menoy = 1000.0;
        if(number == 1) {
            menoy *= 0.9;
        } else if(number == 2) {
            menoy *= 0.8;
        } else if (number == 3) {
            menoy *= 0.7;
        }
        System.out.println("需要支付的金额：" + menoy);
    }
}
